package ch.kerbtier.malurus.components.defaultrenderers;

import ch.kerbtier.malurus.Component;
import ch.kerbtier.malurus.components.Rows;
import ch.kerbtier.malurus.renderers.JavaComponentRenderer;

public class RowsRenderer extends JavaComponentRenderer<Rows> {

	@Override
	public void render() {
		getWriter().print("<div id=\"" + getSubject().getClientId() + "\">");
		for (Component c : getSubject().getRows()) {
			getWriter().print("<div>");
			render(c);
			getWriter().print("</div>");
		}
		getWriter().print("</div>");
	}
}
